<?php

//$username = $_POST['username'];

$conn = new PDO('mysql:host=localhost:3307;dbname=php','root','root');
$conn->exec('SET NAMES UTF8');
//$conn->setAttribute(PDO::ATTR_DEFAULT_FETCH_MODE, PDO::FETCH_COLUMN);
$res = $conn->prepare("select count(*) tol from user");

$res->execute();

$rows = $res->fetchColumn();

//echo $rows[0][0];

echo $rows;
var_dump($rows);
